package com.proxy.parser.visitor;

import com.alibaba.druid.sql.ast.statement.SQLUseStatement;
import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlShowCreateDatabaseStatement;
import com.alibaba.druid.sql.dialect.mysql.ast.statement.MySqlShowDatabasesStatement;
import com.alibaba.druid.sql.dialect.mysql.visitor.MySqlSchemaStatVisitor;
import com.proxy.parser.ParsedResult;
import com.proxy.parser.PoxyVisitor;
import com.proxy.parser.result.ShowDatabasesResult;
import com.proxy.parser.result.UseParsedResult;

/**
 * Created by liufish on 16/12/27.
 */
public class ShowDatabasesVisitor extends MySqlSchemaStatVisitor implements PoxyVisitor {

    private ShowDatabasesResult showDatabasesResult;

    public ShowDatabasesVisitor(ParsedResult parsedResult){

        this.showDatabasesResult = (ShowDatabasesResult)parsedResult;
    }


    @Override
    public boolean visit(MySqlShowDatabasesStatement x) {
        boolean superValue = super.visit(x);
        return superValue;
    }

    @Override
    public void endVisit(MySqlShowDatabasesStatement x) {
        super.endVisit(x);
    }


}
